package com.example.broadcastreceivertest;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class NotificationReceiver extends BroadcastReceiver {

    private static final String TAG = "BroadcastRedmiNote";
    static final String ACTION = "action.push";

    @Override
    public void onReceive(Context context, Intent intent) {
        final String msg = "mainprocess: onReceive, intent: " + intent;
        Log.d(TAG, msg);
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
    }

}
